import request from "@/utils/request";

// 查询入职列表
export function listInduction(data,pageNum,pageSize) {
  return request({
    url: "/module/employee/induction/list?pageNum=" + pageNum + "&pageSize=" + pageSize,
    method: "post",
    data: data,
  });
}

// 查询入职详细
export function getInduction(inductionId) {
  return request({
    url: "/module/employee/induction/" + inductionId,
    method: "get",
  });
}

// 修改入职
export function updateInduction(data) {
  return request({
    url: "/module/employee/induction",
    method: "put",
    data: data,
  });
}

// 批量提交
export function submitInduction(inductionIds) {
  return request({
    url: "/module/employee/induction/submit/" + inductionIds,
    method: "put",
  });
}

// 批量驳回
export function rejectInduction(inductionIds) {
  return request({
    url: "/module/employee/induction/reject/" + inductionIds,
    method: "put",
  });
}

// 批量审核
export function auditInduction(inductionIds, employeeIds) {
  return request({
    url: "/module/employee/induction/audit/" + inductionIds + "/" + employeeIds,
    method: "put",
  });
}
